package cn.hdu.liang.proxy.gumballmonitor;

public class GumballMonitor {
    GumballMachine machine;

    public GumballMonitor(GumballMachine machine) {
        this.machine = machine;
    }

    public void report() {
        System.out.println("机器" + machine.getLocation());
        System.out.println("当前存货"+machine.getCount());
        System.out.println("当前state"+machine);
    }
}
